package com.gs.spring.datasource;


import org.apache.commons.dbcp.BasicDataSource;

import com.util.db.DBres;

public class AcceccDataSource extends BasicDataSource {

	public AcceccDataSource() {
		super();
		String DBPath = this.getClass().getResource("/res/db/data.mdb").getPath().substring(1);
		System.out.println(DBPath);
		this.setUrl(DBres.DBURL + DBPath);
		this.setDriverClassName(DBres.DRIVERCALSS);
	}

	public static void main(String[] args) {
		new AcceccDataSource();
	}

}
